package user

type (
	RegisterRequest struct {
		Email    string `json:"email" binding:"required,email"`
		Code     string `json:"code" binding:"required"`
		Password string `json:"password" binding:"required"`
	}

	LoginRequest struct {
		Email    string `json:"email" form:"email" binding:"required,email"`
		Password string `json:"password" form:"password" binding:"required"`
	}

	EditProfileRequest struct {
		NickName *string `json:"nick_name"`
		Avatar   *string `json:"avatar"`
	}
)

type (
	LoginResponse struct {
		Token    string `json:"token"`
		NickName string `json:"nick_name"`
		Avatar   string `json:"avatar"`
	}

	ProfileResponse struct {
		NickName string `json:"nick_name"`
		Avatar   string `json:"avatar"`
	}
)
